﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace csctp
{
	/// <summary>
	/// 成交
	/// </summary>
	public class TradeField
	{
		/// <summary>
		/// 成交编号
		/// </summary>
		[DisplayName("成交编号")]
		public string TradeID { get; set; }

		/// <summary>
		/// 合约代码
		/// </summary>
		[DisplayName("合约")]
		public string InstrumentID { get; set; }

		/// <summary>
		/// 交易所代码
		/// </summary>
		[DisplayName("交易所")]
		public Exchange ExchangeID { get; set; }

		/// <summary>
		/// 买卖方向
		/// </summary>
		[DisplayName("买卖")]
		public DirectionType Direction { get; set; }

		/// <summary>
		/// 开平标志
		/// </summary>
		[DisplayName("开平")]
		public OffsetType Offset { get; set; }

		/// <summary>
		/// 投机套保标志
		/// </summary>
		[DisplayName("投保")]
		public HedgeType Hedge { get; set; }

		/// <summary>
		/// 成交价格
		/// </summary>
		[DisplayName("成交价格")]
		public double Price { get; set; }

		/// <summary>
		/// 成交数量
		/// </summary>
		[DisplayName("成交数量")]
		public int Volume { get; set; }

		/// <summary>
		/// 成交时间
		/// </summary>
		[DisplayName("成交时间")]
		public string TradeTime { get; set; }

		/// <summary>
		/// 交易日
		/// </summary>
		[DisplayName("交易日")]
		public string TradingDay { get; set; }

		/// <summary>
		/// 对应的委托标识
		/// </summary>
		[DisplayName("报单编号")]
		public string OrderID { get; set; }

		/// <summary>
		/// 交易所生成的编号
		/// </summary>
		[DisplayName("交易所编号")]
		public string SysID { get; set; }
	}
}
